/*
 * @Description: 单位导航包裹组件
 * @Author: Rfan
 * @Date: 2022-05-31 15:25:56
 * @LastEditTime: 2022-05-31 15:51:51
 */

import FondsNav from '@/components/FondsNav';
import { useArchiveClassifyContext } from '../contexts/ArchiveClassifyContext';

const NavSidebar = () => {
  const { setSelectFond } = useArchiveClassifyContext();

  const handleChange = (id: number, item: any) => {
    setSelectFond(item);
  };

  return (
    <>
      <FondsNav onChange={handleChange} />
    </>
  );
};

export default NavSidebar;
